<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!--查找顺序： 3.html -->
  <div id="app" style="color: red;font-size: 20px;">
    hello {{name}} 欢迎光临
    <span class="text" style="color:green">{{age}}</span>
    <p>hello vue</p>
  </div>

  <script src="dist/umd/vue.js"></script>

  <script>
    //模拟用户填写的 optionsAPI
    let vm = new Vue({
      el: '#app',
      //查找顺序: 2.template模板
      template: ``,
      //查找顺序: 1.render函数
      // //createElement 函数方法
      // render(createElement) {

      // },
      data() {
        return {
          name: 'ali',
          age: 30,
          info: {
            job: 'teacher',
            student: [
              {
                id: 1,
                name: '小张'
              },
              {
                id: 2,
                name: '小王'
              }
            ]
          },
          hobby: ['piano', 'travel', 'film']
        }
      }
    });

  </script>
</body>

</html>